package com.lvy.hczn.front.system.domain.system;

import com.baomidou.mybatisplus.annotation.TableField;
import com.lvy.hczn.front.common.core.domain.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.ibatis.type.JdbcType;

import java.math.BigDecimal;
import java.util.List;

@Data
@ApiModel(value = "SysArea对象", description = "")
@NoArgsConstructor
@AllArgsConstructor
public class SysArea extends BaseModel<SysArea> {
    @ApiModelProperty(value = "父级")
    private String pid;

    @ApiModelProperty(value = "层级(0:省;1:市)")
    private Integer deep;

    @ApiModelProperty(value = "简称")
    private String name;

    @ApiModelProperty(value = "拼英首字母")
    private String pinyinPrefix;

    @ApiModelProperty(value = "全拼")
    private String pinyin;

    @ApiModelProperty(value = "扩展id")
    private String extId;

    @ApiModelProperty(value = "扩展名称")
    private String extName;

    @ApiModelProperty(value = "省ID")
    @TableField(exist = false)
    private String provinceId;

    @ApiModelProperty(value = "市ID")
    @TableField(exist = false)
    private String cityId;

    @ApiModelProperty(value = "区ID")
    @TableField(exist = false)
    private String areaId;

    @TableField(exist = false)
    List<SysArea> sub;
}
